#ifndef _MAIN_FRAMEWORK_H_
#define _MAIN_FRAMEWORK_H_

#include "app_header.h"

#define CALCULATE_LEN(arr)  (sizeof(arr)/sizeof(arr[0])) 

typedef struct _TASK_COMPONENTS
{
    uint8_t Run;               		// run flag:         0-disenable         1-enable
    uint16_t Timer;             		// count timer
    uint16_t ItvTime;            	// task interval
    void (*TaskHook)(void);    		// function
} TASK_COMPONENTS;       			// task define


void main_framework_interface(void);

#endif
